<template>
	<view :class="is_all_show==1 ?'content':'content hid'" >
		<u-parse :content="content" @preview="preview" @navigate="navigate" style="background-color: #fff;"/>
	</view>
</template>
<script>
	//视频和文本解析组件
	import uParse from '@/components/gaoyia-parse/parse.vue'
	export default {
		name: 'jshop-content',
		components: {
			uParse
		},
		props: {
			content: {},
			is_all_show:{},  //1=全显示，0=半显示
		},
		created() {},
		methods: {
			preview(src, e) {
				// do something
			},
			navigate(href, e) {
				// do something
			}
		}
	}
</script>
<style>
	.hid{
		max-height: 500upx;
		    overflow: hidden;
	}
</style>
